<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" lang="en">
<head>
<meta charset="UTF-8">
<title>片段</title>
<link href="../static/css/head.css" th:href="@{/css/head.css}" rel="stylesheet" type="text/css">

<script language="JavaScript" src="../static/lib/jquery/jquery-3.2.1.min.js"
        th:src="@{/lib/jquery/jquery-3.2.1.min.js}"></script>
<script language="JavaScript" src="../static/js/home/home.js" th:src="@{/js/home/home.js}"></script>
</head>
<body>
<header>
    <div class="main_header" th:fragment="head">
        <div class="log">
            <img src="../static/image/logo.png" th:src="@{/image/logo.png}">
            <div class="sign">
                <span>编程课程在线学习网站</span>
                <span>学不死,就往死里学</span>
            </div>
        </div>
        <div class="search">
            <form name="search" action="/interface/course/getByWord">
                <input type="search" name="word" placeholder="请在这里输入搜索信息">
                <input type="hidden" name="size" value="5">
                <input type="hidden" name="pageNum" value="0">
                <input type="submit">
            </form>
        </div>
        <div class="login">
            <span th:if="${session.user == null ||session.user.userId == null}">
                <a href="/page/loginPage">登录</a>/<a href="/page/registerPage">注册</a>
            </span>
            <span th:unless="${session.user == null ||session.user.userId == null}">
                <a th:text="${session.user.loginName}"></a>
            </span>
            <div class="personal_msg">

            </div>
            <div class="customer_img">
                <img src="../image/TIM图片20171122194843.jpg">
            </div>
        </div>

        <div class="shopping">
            <span><a href="#">我的收藏</a></span>
        </div>


    </div>

</header>
<script language="JavaScript" src="../static/js/home/head.js" th:src="@{/js/home/head.js}"></script>
</body>
</html>